package cn.it.shop.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/***
 * @Aspect说明他是一个切面类
 * @author fangyangsheng
 * 切面类也需要@Component初始化才可以
 */
//@Aspect
@Component
public class LogerInter {
	@Before("execution(public void com..*.add(..))")
	public void before(){
		System.out.println("method start ");
	}
	
//	@AfterThrowing("execution(public *   dao.impl.UserDAOImpl.save(..))")
//	public void AfterReturning(){
//		System.out.println("method Exception ");
//	}
}
